package com.cyzy.controller;

import com.cyzy.domain.dto.ResponseData;
import com.cyzy.service.TSeedService;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequiredArgsConstructor
public class SeedController {
    @Autowired
    private TSeedService tSeedService;
//   查询全部数据
    @GetMapping("/allseed")
    public ResponseData all(){
        return tSeedService.all();
    }
}
